<template>

  <view id="all">
  <view :key="item.id" v-for="item in List" class="img">
    <navigator url="../index/index">
    <image  :src="item.imgSrc" ></image>
    </navigator>
  </view>
  </view>


  
</template>

<script>
// import axios from "axios";
export default {
  name: "yhj",
  data() {
    return {
      List: []
    };
  },
  created() {
      let _this = this;
      uni.request({
        url: "http://123.57.67.148:3000/mock/42/GetYhjData",
        method: "post",
        success(res) {
          _this.List = res.data.data;
          console.log(_this.List)
        }
      });
    }
  
};
</script>

<style scoped>
#all{
  width: 100%;
  display: flex;
  flex-direction:column;
}
.img{
  width: 100%;
  /* margin: auto; */
  text-align: center;
}
.img image{
  width: 90%;
  height: 10rem;
  padding: 1.5rem 0;
 
}
</style>
